package zh.codegym.task.task04.task0432;



/* 
好东西也不能索取无度
*/

import java.io.*;
import java.util.Scanner;

public class Solution {
    public static void main(String[] args) throws Exception {
        //在此编写你的代码
        Scanner scanner = new Scanner(System.in);
        String text = scanner.next();
        int count = scanner.nextInt();
        if(count < 0){
            return;
        }
        while (count != 0)
        {
            count--;
            System.out.println(text);
        }
    }
}
